
package com.tm.chargecar.controller;

import com.tm.chargecar.conf.OperationLog;
import com.tm.chargecar.entity.RecordEntity;
import com.tm.chargecar.vo.RecordVo;
import com.tm.chargecar.enums.OperationTypeEnum;
import com.tm.chargecar.result.Result;
import com.tm.chargecar.service.RecordService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"record"})
public class RecordController {
    @Autowired
    private RecordService recordService;

    /**
     * 查询对账单的方法
     * @param recordVo
     * @return
     */
    @GetMapping({"queryRecord"})
    @OperationLog(
        operationModule = "jack",
        operationType = OperationTypeEnum.QUERY,
        description = "查询对账信息"
    )
    public Result queryRecord(RecordVo recordVo) {
        List<RecordEntity> list = this.recordService.queryRecord(recordVo);
        return Result.SUCCESS(list);
    }


}
